{extend name="main/index" /}
{block name="main"}
<form action="{:url('admin/category/save')}" method="post" class="form-horizontal" style="margin-left: 450px">
    <!--<input type="hidden" value="post" name="_method">-->

    <div class="form-group" style="margin-top: 170px; ">
        <label class="col-sm-2 control-label">ID</label>
        <div class="col-sm-4">
            <input name="id" value="" class="form-control" readonly>
        </div>
    </div>

    <div class="form-group" style="margin-top: 30px; ">
        <label class="col-sm-2 control-label">分类名称</label>
        <div class="col-sm-4">
            <input name="cname" type="text" class="form-control" value="">
        </div>
    </div>

    <div class="form-group" style="margin-left: 5px;margin-top: 30px" >
        <label class="col-sm-2 control-label">选择上级</label>
        <select class="form-control" style="width: 250px;" name="pid">
            <option value="">----添加一级分类----</option>

            {volist name="res" id="vo"}
            <option value="{$vo.id}">{$vo.nbsp}{$vo.cname}</option>
            {/volist}
    </select>
    </div>


    <div class="form-group">
        <div class="col-sm-offset-3 col-sm-10">
            <button type="submit" class="btn btn-default">提交</button>
        </div>
    </div>
</form>

{/block}